
        function wtalert(args){
				var zhezhao = document.createElement('div');
				zhezhao.className = 'zhezhao';
				zhezhao.innerHTML=`<div class="alert">
					<div class="header"><span class="title">`+args.title+`</span><span class="close">x</span></div>
					<div class="main">
						`+args.content+`
					</div>
					<div class="btnList">
						<div class="btn bdiv">确定</div>
						<div class="btn cancel">取消</div>
					</div>
				</div>
				`;

				var body = document.querySelector('body');
				body.appendChild(zhezhao);
				
				var closeDiv = document.querySelector('.close');
				closeDiv.onclick = function(){
					body.removeChild(zhezhao);
				}

				var bdiv = document.querySelector('.btn.bdiv');
				bdiv.onclick = function() {	
			    	if(typeof (args.confirmFn) == 'function'){
						args.confirmFn();
					}else{
						console.error("传入的参数未设置确认函数！");
					};
				    body.removeChild(zhezhao);
				}

				var cancelDiv = document.querySelector('.btn.cancel');
				cancelDiv.onclick = function(){
                  if(typeof args.cancelDiv == 'function'){
						args.cancelDiv();
					}else{
						console.error("传入的参数未设置取消函数！");
					};
					body.removeChild(zhezhao);
				};
            };